package org.linlinjava.litemall.db.util;

import com.google.common.collect.ImmutableMap;

import java.util.Map;

public class OrderConstant {

    /**
     *      订单状态
     *      待确认--201
     *      待付款--202
     *      待到款--203
     *      待检测--204
     *      待验收--205
     *      已完成--200
     *      已取消--100
     *      处理中--301
     *      已退款--300（已废弃）
     *      裁定中--302（已废弃）
     *      待处理（部分退款）--311（已废弃）
     **/
    public static final Short SUBMITTED = 201;
    public static final Short CONFIRMED = 202;
    public static final Short PAYING = 203;
    public static final Short PAYED = 204;
    public static final Short ASSAYED = 205;
    public static final Short COMPLETED = 200;
    public static final Short CANCELED = 100;
    public static final Short PENDING = 301;
    public static final Short REFUNDED = 300;
    public static final Short DISPUTED = 302;
    public static final Short PENDING_PART = 311;


    public static final Map<Short, String> NAME_MAP = ImmutableMap.<Short, String>builder()
            .put(SUBMITTED, "待确认")
            .put(CONFIRMED, "待付款")
            .put(PAYING, "待到款")
            .put(PAYED, "待检测")
            .put(ASSAYED, "待验收")
            .put(COMPLETED, "已完成")
            .put(CANCELED, "已取消")
            .put(PENDING, "处理中")
            .put(REFUNDED, "已退款【已废弃】")
            .put(DISPUTED, "裁定中【已废弃】")
            .put(PENDING_PART, "待处理（部分退款）【已废弃】")
            .build();
}
